import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import download from './utils/download'

Vue.config.productionTip = false

/* 导入 axios */
import axios from '@/utils/request'
import VueAxios from 'vue-axios'

Vue.use(VueAxios, axios)

//引入moment
import moment from 'moment';

/*引入vue-video-player*/
import VideoPlayer from 'vue-video-player'
import 'vue-video-player/src/custom-theme.css'
import 'video.js/dist/video-js.css'
Vue.use(VideoPlayer)
/* 导入element */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

/* 引入全局css */
import '@/style/base.css'
import '@/style/inputBox.css'

//全局变量
  Vue.prototype.$downloadUrl = 'https://teaching-management.nos-eastchina1.126.net/';
Vue.prototype.$moment = moment
Vue.prototype.$download = download
const pic = require('./assets/images/logo.png')
Vue.prototype.$pic = pic


//路由跳转回顶部
router.afterEach(() => {
  window.scrollTo(0, 0);
})

Vue.use(ElementUI);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
